<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HabitMaster - 原型设计</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }
        body {
            background-color: #f5f7fa;
            color: #333;
            max-width: 375px;
            margin: 0 auto;
            min-height: 812px;
            position: relative;
            box-shadow: 0 0 30px rgba(0,0,0,0.1);
        }
        .page {
            display: none;
            padding: 20px;
            height: 812px;
            overflow-y: auto;
        }
        .active {
            display: block;
        }
        
        /* 导航栏 */
        .navbar {
            display: flex;
            justify-content: space-between;
            padding: 15px;
            background: white;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .nav-title {
            font-weight: 600;
            font-size: 18px;
        }
        
        /* 按钮样式 */
        .btn {
            background: #4a6cf7;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 10px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        .btn:hover {
            background: #3a5ce5;
            transform: translateY(-2px);
        }
        
        /* 卡片样式 */
        .card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        }
    </style>
</head>
<body>
    <!-- 登录页面 -->
    <section id="login-page" class="page ">
        <div style="text-align: center; padding-top: 120px;">
            <i class="fas fa-seedling" style="font-size: 64px; color: #4a6cf7; margin-bottom: 30px;"></i>
            <h1 style="margin-bottom: 10px;">HabitMaster</h1>
            <p style="color: #777; margin-bottom: 40px;">基于《掌控习惯》的科学习惯养成法</p>
            
            <div class="card" style="margin: 0 auto 20px; max-width: 300px;">
                <input type="text" placeholder="邮箱/手机号" style="width: 100%; padding: 12px; border: none; border-bottom: 1px solid #eee; margin-bottom: 15px;">
                <input type="password" placeholder="密码" style="width: 100%; padding: 12px; border: none;">
            </div>
            
            <button class="btn" style="width: 300px; margin-bottom: 15px;" onclick="showPage('home-page')">登录</button>
            <p style="color: #4a6cf7; font-weight: 500;" onclick="showPage('register-page')">注册新账号</p>
        </div>
    </section>

    <!-- 注册页面 -->
    <section id="register-page" class="page ">
        <div class="navbar">
            <i class="fas fa-arrow-left" onclick="showPage('login-page')"></i>
            <div class="nav-title">注册账号</div>
            <div></div>
        </div>
        
        <div class="card">
            <h3 style="margin-bottom: 20px;">创建账号</h3>
            <input type="text" placeholder="姓名" style="width: 100%; padding: 12px; border: none; border-bottom: 1px solid #eee; margin-bottom: 15px;">
            <input type="email" placeholder="邮箱" style="width: 100%; padding: 12px; border: none; border-bottom: 1px solid #eee; margin-bottom: 15px;">
            <input type="password" placeholder="密码" style="width: 100%; padding: 12px; border: none; border-bottom: 1px solid #eee; margin-bottom: 15px;">
            <input type="password" placeholder="确认密码" style="width: 100%; padding: 12px; border: none;">
        </div>
        
        <button class="btn" style="width: 100%;" onclick="showPage('habit-setup-page')">继续</button>
    </section>

    <!-- 习惯设置页面 -->
    <section id="habit-setup-page" class="page ">
        <div class="navbar">
            <i class="fas fa-arrow-left" onclick="showPage('register-page')"></i>
            <div class="nav-title">初始设置</div>
            <div></div>
        </div>
        
        <div class="card">
            <h3 style="margin-bottom: 20px;">选择你想培养的习惯</h3>
            
            <div style="display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee;">
                <div style="background: #e6f7ff; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 15px;">
                    <i class="fas fa-book" style="color: #4a6cf7;"></i>
                </div>
                <div>
                    <div style="font-weight: 500;">每日阅读</div>
                    <div style="font-size: 13px; color: #888;">每天阅读30分钟</div>
                </div>
                <i class="fas fa-plus-circle" style="margin-left: auto; color: #4a6cf7; font-size: 20px;"></i>
            </div>
            
            <!-- 更多习惯选项... -->
        </div>
        
        <button class="btn" style="width: 100%;" onclick="showPage('home-page')">完成设置</button>
    </section>

    <!-- 主页面 -->
    <section id="home-page" class="page active">
        <div class="navbar">
            <i class="fas fa-chart-line" onclick="showPage('stats-page')"></i>
            <div class="nav-title">今日习惯</div>
            <i class="fas fa-plus" onclick="showPage('add-habit-page')"></i>
        </div>
        
        <div style="margin-top: 20px;">
            <div class="card">
                <div style="display: flex; align-items: center; margin-bottom: 15px;">
                    <div style="background: #e6f7ff; width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-right: 15px;">
                        <i class="fas fa-book" style="color: #4a6cf7; font-size: 24px;"></i>
                    </div>
                    <div>
                        <div style="font-weight: 500; font-size: 18px;">每日阅读</div>
                        <div style="font-size: 14px; color: #888;">连续7天</div>
                    </div>
                    <div style="margin-left: auto; width: 30px; height: 30px; border: 2px solid #4a6cf7; border-radius: 8px;"></div>
                </div>
                
                <div style="display: flex; justify-content: space-between; margin-top: 15px;">
                    <div style="display: flex; align-items: center; color: #888;">
                        <i class="fas fa-bell" style="margin-right: 5px;"></i>
                        <span>19:00提醒</span>
                    </div>
                    <div style="color: #4a6cf7; font-weight: 500;" onclick="showPage('habit-detail-page')">详情</div>
                </div>
            </div>
            
            <!-- 更多习惯卡片... -->
        </div>
        
        <div style="position: fixed; bottom: 0; left: 0; right: 0; background: white; display: flex; justify-content: space-around; padding: 15px 0; border-top: 1px solid #eee;">
            <div style="text-align: center; color: #4a6cf7;">
                <i class="fas fa-home"></i>
                <div style="font-size: 12px; margin-top: 5px;">首页</div>
            </div>
            <div style="text-align: center; color: #888;">
                <i class="fas fa-chart-pie"></i>
                <div style="font-size: 12px; margin-top: 5px;">统计</div>
            </div>
            <div style="text-align: center; color: #888;">
                <i class="fas fa-trophy"></i>
                <div style="font-size: 12px; margin-top: 5px;">成就</div>
            </div>
            <div style="text-align: center; color: #888;">
                <i class="fas fa-cog"></i>
                <div style="font-size: 12px; margin-top: 5px;">设置</div>
            </div>
        </